"""
DNS管理器应用的URL配置
"""

from django.urls import path
from . import views

urlpatterns = [
    # 首页和仪表盘
    path('', views.home, name='home'),
    
    # 云账号管理
    path('accounts/', views.cloud_accounts, name='cloud_accounts'),
    path('accounts/create/', views.create_cloud_account, name='create_cloud_account'),
    path('accounts/<int:account_id>/edit/', views.edit_cloud_account, name='edit_cloud_account'),
    path('accounts/<int:account_id>/delete/', views.delete_cloud_account, name='delete_cloud_account'),
    path('accounts/<int:account_id>/sync/', views.sync_cloud_account, name='sync_cloud_account'),
    
    # 域名管理
    path('domains/', views.domains, name='domains'),
    path('domains/create/', views.create_domain, name='create_domain'),
    path('domains/<int:domain_id>/', views.domain_records, name='domain_records'),
    path('domains/<int:domain_id>/sync/', views.sync_domain_records, name='sync_domain_records'),
    
    # DNS记录管理
    path('domains/<int:domain_id>/records/create/', views.create_dns_record, name='create_dns_record'),
    
    # 操作日志
    path('logs/', views.operation_logs, name='operation_logs'),
]